package com.and9.mchen.mcmusic.entity.menum;

import java.util.EnumSet;

public enum MusicLocal {
	
	CPOP("CPOP"),
	KPOP("KPOP"),
	EPOP("EPOP");
	
	private String value;
	 
	public String getValue(){
   	 	return this.value;
    }
    
	private MusicLocal(String value){
		this.value = value;
    }
    
	public static  MusicLocal getMusicLocalByValue(String value){
		
		EnumSet<MusicLocal> enumSet=EnumSet.allOf(MusicLocal.class);
		
		for(MusicLocal musicLocal : enumSet){
			if(musicLocal.getValue().equals(value)){
				return musicLocal;
			}
		}
		
		return null;
	}
	
}
